<template>
  <view class="w-full max-w-[750rpx] mx-auto min-h-screen bg-[#f6f8fa] p-[32rpx] box-border">
    <text class="block text-[48rpx] font-extrabold mb-[40rpx] text-center text-blue-600 drop-shadow">编辑社会经济学信息</text>
    <FormView :fieldConfig="fieldConfig" :form="form" :showButtons="true" @submit="submitForm" />
  </view>
</template>

<script setup lang="ts">
import { ref, reactive } from 'vue'
import Taro from '@tarojs/taro'
import { healthSocialInfoFields as fieldConfig } from './fields'
import FormView from '@/components/FormView.vue'
const form = reactive<any>({})

function submitForm() {
  // 校验和保存逻辑
  Taro.showToast({ title: '保存成功', icon: 'success' })
}
</script> 